package com.bestcem.xm.award.service.dto.awardaward;

import com.bestcem.xm.common.core.constant.RegTypes;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;

/**
 * 查询单个奖励参数
 * @author sh.pei <sh.pei@idiaoyan.com>
 * @version v1.0
 * @date 2021/7/1 11:08
 */
@Getter
@Setter
@NoArgsConstructor
@ToString
public class GetAwardDTO {

    /**
     * 奖励id
     */
    @NotBlank(message = "奖励标识为空！")
    @Pattern(regexp = RegTypes.OBJECT_ID, message = "奖励标识异常！")
    private String id;

    /**
     * 抽奖奖励是否需要兑奖码数据
     */
    private boolean needWin;

}
